/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pie4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pie4cloud.pie.bus.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pie4cloud.pie.bus.api.dto.ConsumerDto;
import com.pie4cloud.pie.bus.api.entity.DataKafConsumer;

/**
 * kafka消费者管理
 *
 * @author pie code generator
 * @date 2021-12-28 10:59:58
 */
public interface KafkaManageService extends IService<DataKafConsumer> {
	IPage<DataKafConsumer> pageAndMonitor(Page page, DataKafConsumer dataKafConsumer);
	int deleteByTopicAndGroup(String topic , String group);
	DataKafConsumer saveAndSend(DataKafConsumer dataKafConsumer);
	DataKafConsumer editAndSend(DataKafConsumer dataKafConsumer);
	boolean delAndSend(Long consId);
	void send(ConsumerDto consumerDto);
	public void resetConsumer();

}
